home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Workbench Add-On
/
Workbench Add-On - Volume 1.iso
/
Gfx
/
Edit
/
ImageEngineer
/
ARexx
/
Vignette.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-03-19
|
1KB
|
56 lines
/**************************************************/
/* Image Engineer script */
/* by Simon Edwards */
/* Applies a blurred Vignette effect to an image. */
/**************************************************/
Options results
signal on error /* Setup a place for errors to go */
address 'IMAGEENGINEER'
IE_To_Front
'REQUEST "This applies a Blurred Vigette'||D2C(10)||'effect to an image." "Let''s Go!"'
'GET_FILE "Select an image" "This One"'
filename=result
if filename="" then exit
TYPE 24BIT
'OPEN "'||filename||'"'
source=result
LOWPASS source 5 5
blurredimage=result
PROJECT_INFO source Width
width=result
PROJECT_INFO source Height
height=result
TYPE 8BIT
'OPEN IE:alpha/Spherical.alpha'
alphachannel=result
SCALE alphachannel width height BEST
newalpha=result
CLOSE alphachannel
MARK source PRIMARY
MARK blurredimage SECONDARY
MARK newalpha ALPHA
COMPOSITE 0 0 ALPHA
CLOSE newalpha
CLOSE blurredimage
CLOSE source
'REQUEST "All Done." "Cool."'
exit
/*******************************************************************/
/* This is where control goes when an error code is returned by IE */
/* It puts up a message saying what happened and on which line */
/*******************************************************************/
error:
IE_to_front
LAST_ERROR
'REQUEST "Error detected!!!'||D2C(10)||'Image Engineer error message is as follows'||D2C(10)||result||D2C(10)||'Script failed on line '||SIGL||'"' 'Doh!'
exit